package com.app.stick.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;

/**
 * 设备信息对象 biz_device_info
 *
 * @author app
 * @date 2023-12-16
 */
@Data
@TableName(value = "biz_device_info" )
@ApiModel(value = "BizDeviceInfo" , description = "设备信息对象" )
public class BizDeviceInfo extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @ApiModelProperty(value = "设备编号")
    private String deviceCode;

    /** 设备型号 */
    @Excel(name = "设备型号")
    @ApiModelProperty(value = "设备型号")
    private String deviceModel;

    /** 设备MAC地址 */
    @Excel(name = "设备MAC地址")
    @ApiModelProperty(value = "设备MAC地址")
    private String deviceMac;

    /** 设备绑定患者数量 */
    @Excel(name = "设备绑定患者数量")
    @ApiModelProperty(value = "设备绑定患者数量")
    private Long deviceNum;

    /** 设备首次绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "设备首次绑定时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "设备首次绑定时间")
    private Date deviceFirstTime;

    /** 设备状态（1=正常,2=停用） */
    @Excel(name = "设备状态", readConverterExp = "1==正常,2=停用")
    @ApiModelProperty(value = "设备状态（1=正常,2=停用）")
    private String deviceStatus;

    /** 删除标志（0=正常,1=删除） */
    @Excel(name = "删除标志", readConverterExp = "0==正常,1=删除")
    @ApiModelProperty(value = "删除标志（0=正常,1=删除）")
    private String delFlag;


}
